﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<Question>>" %>
<%@ Import Namespace="SDT.Model" %>
<%@ Import Namespace="SDT.Site.ViewModels" %>
<div class="bor_cor mar_t">
	<div class="bar_org" style="text-align:center">
	    <a href="/question"><%=ViewData["Title"] %></a>
	</div>
    <div class="new_list">
        <ul>
            <% if (Model != null && Model.Count() > 0)
               {
                   foreach (var c in Model)
                   {
            %>
            <li><a href="/question/details/<%=c.ID %>">
                <%=Html.Encode(c.Title) %></a></li>
            <%}
           }%>
        </ul>
    </div>
    <div class="clear"></div>
    <div class="mar_t" style="text-align:center; margin-bottom:5px;">
        <input type="button" class="bnt_short" value="Gửi câu hỏi" onclick="location.href='/question/create'" />
    </div>
</div>
